package com.code.modules.base.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

public class UserinfoVo implements Serializable {

    @ApiModelProperty(value="用户id")
    private Integer id;
    @ApiModelProperty(value="账号")
    private String username;
    @ApiModelProperty(value="头像地址")
    private String avatar;
    @ApiModelProperty(value="JWTtoken")
    private String jwt;
    @ApiModelProperty(value="有效期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date withexpiresAt;

    public void UserinfoVo() {

    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getJwt() {
        return jwt;
    }

    public void setJwt(String jwt) {
        this.jwt = jwt;
    }

    public Date getWithexpiresAt() {
        return withexpiresAt;
    }

    public void setWithexpiresAt(Date withexpiresAt) {
        this.withexpiresAt = withexpiresAt;
    }

    @Override
    public String toString() {
        return "UserinfoVo{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", avatar='" + avatar + '\'' +
                ", jwt='" + jwt + '\'' +
                ", withexpiresAt=" + withexpiresAt +
                '}';
    }
}
